<template>
  <div class="home" ref="home">
    <div class="swiper_box">
      <swiper
        :options="swiperOption"
        ref="mySwiper"
        @slideChange="slideChange()"
      >
        <swiper-slide class="swiper-slide-defalut">
          <div class="homeBanner" v-if="showClass != 'aaa'">
            <FootBarHeader
              @getTopClass="getTopClass"
              class="footBarHeader"
            ></FootBarHeader>
            <div class="hetitlecc">
              <div class="top animated fadeInUp">Easy leasing machinery</div>
              <div class="big animated fadeInUp">轰隆隆-优秀建企首选机械租赁平台</div>
              <div class="line"></div>
              <!-- <div class="text animated fadeInUp">
                为<span class="key">工程行业</span>从业者提供创新发展平台
              </div> -->
            </div>
            <div id="bannerBox">
              <div id="bannerImg"></div>
              <div id="overlay"></div>
            </div>
            <div @click="nowNext">
              <lottie
                :height="49"
                :width="49"
                class="iconImg"
                :options="defaultOptions"
                @animCreated="handleAnimation"
              />
            </div>
          </div>
          <div class="homeBannerDark" v-else>
            <FootBarHeader
              @getTopClass="getTopClass"
              class="footBarHeader"
            ></FootBarHeader>
            <div class="tabTextcons">
              <div class="tabTextcon" @click="goNewpage(1)">
                <div class="tabText">
                  <span>企业介绍</span>
                  <span class="tabTexte">company profile</span>
                </div>
                <img
                  src="../../../assets/img/footIcon/raIcon.png"
                  class="raLcon"
                  alt=""
                />
              </div>
              <div class="tabTextcon" @click="goNewpage(2)">
                <div class="tabText">
                  <span>发展历史</span>
                  <span class="tabTexte">development history</span>
                </div>
                <img
                  src="../../../assets/img/footIcon/raIcon.png"
                  class="raLcon"
                  alt=""
                />
              </div>
              <div class="tabTextcon" @click="goNewpage(3)">
                <div class="tabText">
                  <span>联系我们</span>
                  <span class="tabTexte">contact us</span>
                </div>
                <img
                  src="../../../assets/img/footIcon/raIcon.png"
                  class="raLcon"
                  alt=""
                />
              </div>
            </div>
          </div>
        </swiper-slide>
        <swiper-slide class="swiper-slide-defalut" id="ahome">
          <div class="timebanner2">
            <div class="timeline">
              <div class="lft">
                <div class="shadow">EVENT</div>
                <div>大事件</div>
                <div class="line"></div>
              </div>
              <div class="rht">
                <div
                  :class="{ now: true, set: (setbn == 1 ? true : false) }"
                  @click="setbtnclas(1)"
                >
                  2021
                </div>
                <div
                  :class="{ now: true, set: (setbn == 2 ? true : false) }"
                  @click="setbtnclas(2)"
                >
                  2020
                </div>
                <div
                  :class="{ now: true, set: (setbn == 3 ? true : false) }"
                  @click="setbtnclas(3)"
                >
                  2019
                </div>
                <div
                  :class="{ now: true, set: (setbn == 4 ? true : false) }"
                  @click="setbtnclas(4)"
                >
                  2018
                </div>
                <div
                  :class="{ now: true, set: (setbn == 5 ? true : false) }"
                  @click="setbtnclas(5)"
                >
                  2017
                </div>
                <div
                  :class="{ now: true, set: (setbn == 6 ? true : false) }"
                  @click="setbtnclas(6)"
                >
                  2016
                </div>
                <div
                  :class="{ now: true, set: (setbn == 7 ? true : false) }"
                  @click="setbtnclas(7)"
                >
                  2015
                </div>
              </div>
            </div>
            <div class="paintline">
              <swiper
                :options="swiperOptionus"
                ref="mySwiperus"
                @slideChange="slideChangeus()"
              >
                <swiper-slide class="swiper-slide-defalut2">
                  <div class="center">
                    <div class="longtext">
                      <span class="longline"></span>
                      <div class="borad">
                        <span class="point"></span>
                      </div>
                      <div class="longcon">
                        <div class="time">2021.04</div>
                        <div class="text">
                          进军<span class="color">融资租赁领域</span>
                        </div>
                      </div>
                    </div>
                    <span class="line1"></span>
                    <span class="line2"></span>
                    <span class="line1"></span>
                    <span class="line2"></span>
                    <span class="line1"></span>
                    <div class="longtext2">
                      <div class="borad">
                        <span class="point"></span>
                      </div>
                      <div class="longcon">
                        <div class="time">2021.03</div>
                        <div class="text">
                          进军<span class="color">大数据产业基地（地产)</span>
                        </div>
                      </div>
                      <span class="longline"></span>
                    </div>
                    <span class="line1"></span>
                    <span class="line2"></span>
                    <span class="line1"></span>
                    <span class="line2"></span>
                    <span class="line1"></span>
                    <div class="longtext">
                      <span class="longline"></span>
                      <div class="borad">
                        <span class="point"></span>
                      </div>
                      <div class="longcon">
                        <div class="time">2021.02</div>
                        <div class="text">
                          赋能
                          <span class="color"
                            >四川交通厅，与四川省公路规划勘察设计院有限公司</span
                          >成立合股公司
                        </div>
                      </div>
                    </div>
                    <span class="line1"></span>
                    <span class="line2"></span>
                    <span class="line1"></span>
                    <span class="line2"></span>
                    <span class="line1"></span>
                    <span class="line2"></span>
                  </div>
                </swiper-slide>
                <swiper-slide class="swiper-slide-defalut2">
                  <div class="center">
                    <div class="longtext2">
                      <div class="borad">
                        <span class="point"></span>
                      </div>
                      <div class="longcon">
                        <div class="time">2021.01</div>
                        <div class="text">
                          通过<span class="color">国家高新技术企业认证</span>
                        </div>
                      </div>
                      <span class="longline"></span>
                    </div>
                    <span class="line1"></span>
                    <span class="line2"></span>
                    <span class="line1"></span>
                    <span class="line2"></span>
                    <div class="longtext">
                      <span class="longline"></span>
                      <div class="borad">
                        <span class="point"></span>
                      </div>
                      <div class="longcon">
                        <div class="time">2020.10</div>
                        <div class="text">
                          成立<span class="color">雄安新区办事处</span>
                        </div>
                      </div>
                    </div>
                    <span class="line1"></span>
                    <span class="line2"></span>
                    <span class="line1"></span>
                    <span class="line2"></span>
                    <span class="line1"></span>
                    <div class="longtext2">
                      <div class="borad">
                        <span class="point"></span>
                      </div>
                      <div class="longcon">
                        <div class="time">2020.08</div>
                        <div class="text">
                          <span class="color">华南区域总部</span
                          >落地广东省揭阳市
                        </div>
                      </div>
                      <span class="longline"></span>
                    </div>
                    <span class="line1"></span>
                    <span class="line2"></span>
                    <span class="line1"></span>
                    <span class="line2"></span>
                    <span class="line1"></span>
                    <span class="line2"></span>
                    <span class="line1"></span>
                  </div>
                </swiper-slide>
                <swiper-slide class="swiper-slide-defalut2">
                  <div class="center">
                    <div class="longtext">
                      <span class="longline"></span>
                      <div class="borad">
                        <span class="point"></span>
                      </div>
                      <div class="longcon">
                        <div class="time">2020.07</div>
                        <div class="text">
                          在线租赁业务破
                          <span class="color">10亿元</span>
                        </div>
                      </div>
                    </div>
                    <span class="line1"></span>
                    <span class="line2"></span>
                    <span class="line1"></span>
                    <span class="line2"></span>
                    <span class="line1"></span>
                    <div class="longtext2">
                      <div class="borad">
                        <span class="point"></span>
                      </div>
                      <div class="longcon">
                        <div class="time">2020.02</div>
                        <div class="text">
                          推出<span class="color"
                            >企业、个人财税增值服务，财税通产品</span
                          >上线
                        </div>
                      </div>
                      <span class="longline"></span>
                    </div>
                    <span class="line1"></span>
                    <span class="line2"></span>
                    <span class="line1"></span>
                    <span class="line2"></span>
                    <span class="line1"></span>
                    <div class="longtext">
                      <span class="longline"></span>
                      <!--  <div class="borad">
                        <span class="point"></span>
                      </div> -->
                      <!-- <div class="longcon">
                        <div class="time">2020</div>
                        <div class="text">
                          华南区域总部落地
                          <span class="color">广州南沙</span>
                        </div>
                      </div>  -->
                    </div>
                    <span class="line1"></span>
                    <span class="line2"></span>
                    <span class="line1"></span>
                    <span class="line2"></span>
                    <span class="line1"></span>
                    <span class="line2"></span>
                  </div>
                </swiper-slide>

                <swiper-slide class="swiper-slide-defalut2">
                  <div class="center">
                    <div class="longtext">
                      <span class="longline"></span>
                      <div class="borad">
                        <span class="point"></span>
                      </div>
                      <div class="longcon">
                        <div class="time">2019.09</div>
                        <div class="text">
                          业务合作-赋能中国铁建轰隆隆与
                          <span class="color">中铁二十二局</span>
                          集团签署战略合作协议
                        </div>
                      </div>
                    </div>
                    <span class="line1"></span>
                    <span class="line2"></span>
                    <span class="line1"></span>
                    <span class="line2"></span>
                    <span class="line1"></span>
                    <div class="longtext2">
                      <div class="borad">
                        <span class="point"></span>
                      </div>
                      <div class="longcon">
                        <div class="time">2019.02</div>
                        <div class="text">
                          华东区域总部落地
                          <span class="color">江苏南通</span>
                        </div>
                      </div>
                      <span class="longline"></span>
                    </div>
                    <span class="line1"></span>
                    <span class="line2"></span>
                    <span class="line1"></span>
                    <span class="line2"></span>
                    <span class="line1"></span>
                    <div class="longtext">
                      <span class="longline"></span>
                      <div class="borad">
                        <span class="point"></span>
                      </div>
                      <div class="longcon">
                        <div class="time">2019.01</div>
                        <div class="text">
                          华南区域总部落地
                          <span class="color">广州南沙</span>
                        </div>
                      </div>
                    </div>
                    <span class="line1"></span>
                    <span class="line2"></span>
                    <span class="line1"></span>
                    <span class="line2"></span>
                    <span class="line1"></span>
                    <span class="line2"></span>
                  </div>
                </swiper-slide>
                <swiper-slide class="swiper-slide-defalut2">
                  <div class="center">
                    <div class="longtext2">
                      <div class="borad">
                        <span class="point"></span>
                      </div>
                      <div class="longcon">
                        <div class="time">2018.09</div>
                        <div class="text">
                          成立轰隆隆<span class="color">山西运营中心</span>
                        </div>
                      </div>
                      <span class="longline"></span>
                    </div>
                    <span class="line1"></span>
                    <span class="line2"></span>
                    <span class="line1"></span>
                    <span class="line2"></span>
                    <div class="longtext">
                      <span class="longline"></span>
                      <div class="borad">
                        <span class="point"></span>
                      </div>
                      <div class="longcon">
                        <div class="time">2018.07</div>
                        <div class="text">
                          信用建设 | 轰隆隆平台入选
                          <span class="color">北京市经信局</span>
                          第一批信用大数据创新应用示范项目
                        </div>
                      </div>
                    </div>
                    <span class="line1"></span>
                    <span class="line2"></span>
                    <span class="line1"></span>
                    <span class="line2"></span>
                    <span class="line1"></span>
                    <div class="longtext2">
                      <div class="borad">
                        <span class="point"></span>
                      </div>
                      <div class="longcon">
                        <div class="time">2018.01</div>
                        <div class="text">
                          成立轰隆隆<span class="color">江苏运营中心</span>
                        </div>
                      </div>
                      <span class="longline"></span>
                    </div>
                    <span class="line1"></span>
                    <span class="line2"></span>
                    <span class="line1"></span>
                    <span class="line2"></span>
                    <span class="line1"></span>
                    <span class="line2"></span>
                    <span class="line1"></span>
                  </div>
                </swiper-slide>
                <swiper-slide class="swiper-slide-defalut2">
                  <div class="center">
                    <div class="longtext">
                      <span class="longline"></span>
                      <div class="borad">
                        <span class="point"></span>
                      </div>
                      <div class="longcon">
                        <div class="time">2017.11</div>
                        <div class="text">
                          业务合作 |
                          <span class="color"
                            >中铁六局、中铁三局、中铁十一局、中铁建工、中建八局、中基发展、北京住总、安徽建工、安徽华力</span
                          >等客户相继与轰隆隆展开合作
                        </div>
                      </div>
                    </div>
                    <span class="line1"></span>
                    <span class="line2"></span>
                    <span class="line1"></span>
                    <span class="line2"></span>
                    <span class="line1"></span>
                    <div class="longtext">
                      <span class="longline"></span>
                      <div class="borad">
                        <span class="point"></span>
                      </div>
                      <div class="longcon">
                        <div class="time">2017.09</div>
                        <div class="text">
                          业务合作 | 轰隆隆
                          <span class="color">中信保理在中信资产总部</span
                          >与会见日本伊藤忠商业株式会社、日本东京世纪株式会社一行，洽谈“互联网+机械+金融”商务合作事宜
                        </div>
                      </div>
                    </div>
                    <span class="line1"></span>
                    <span class="line2"></span>
                    <span class="line1"></span>
                    <span class="line2"></span>
                    <span class="line1"></span>
                    <div class="longtext2">
                      <div class="borad">
                        <span class="point"></span>
                      </div>
                      <div class="longcon">
                        <div class="time">2017.07</div>
                        <div class="text">
                          Pre-A+ | 轰隆隆完成<span class="color">中信保理</span
                          >领投的轰隆隆Pre-A+轮融资
                        </div>
                      </div>
                      <span class="longline"></span>
                    </div>
                    <span class="line1"></span>
                    <span class="line2"></span>
                    <span class="line1"></span>
                    <span class="line2"></span>
                    <div class="longtext">
                      <span class="longline"></span>
                      <div class="borad">
                        <span class="point"></span>
                      </div>
                      <div class="longcon">
                        <div class="time">2017.06</div>
                        <div class="text">
                          业务合作 |
                          <span class="color"
                            >中铁二十三局、中国新兴、中国交建新疆区域总部、中核建华兴公司、中天路桥、北京城建、北京地矿</span
                          >等客户相继与轰隆隆展开合作
                        </div>
                      </div>
                    </div>
                  </div>
                </swiper-slide>
                <swiper-slide class="swiper-slide-defalut2">
                  <div class="center">
                    <span class="line1"></span>
                    <span class="line2"></span>
                    <span class="line1"></span>
                    <span class="line2"></span>
                    <span class="line1"></span>
                    <div class="longtext">
                      <span class="longline"></span>
                      <div class="borad">
                        <span class="point"></span>
                      </div>
                      <div class="longcon">
                        <div class="time">2017.04</div>
                        <div class="text">
                          运营基地建设 |
                          轰隆隆国内三大运营基地设立并启动，分别是<span
                            class="color"
                            >“京津冀区域运营基地”、“一带一路区域运营基地”和“泛珠江三角区域运营基地”</span
                          >
                        </div>
                      </div>
                    </div>
                    <span class="line1"></span>
                    <span class="line2"></span>
                    <span class="line1"></span>
                    <span class="line2"></span>
                    <span class="line1"></span>
                    <div class="longtext">
                      <span class="longline"></span>
                      <div class="borad">
                        <span class="point"></span>
                      </div>
                      <div class="longcon">
                        <div class="time">2017.03</div>
                        <div class="text">
                          企业战略升级 |
                          轰隆隆企业战略全面升级，专为用户提供灵活、高效、安全、可控的
                          <span class="color">一站式智能机械施工服务</span>
                        </div>
                      </div>
                    </div>
                    <span class="line1"></span>
                    <span class="line2"></span>
                    <span class="line1"></span>
                    <span class="line2"></span>
                    <span class="line1"></span>
                    <div class="longtext2">
                      <div class="borad">
                        <span class="point"></span>
                      </div>
                      <div class="longcon2">
                        <div class="time">2016.10</div>
                        <div class="text">
                          业务合作 | 轰隆隆与 成立轰隆隆<span class="color"
                            >中交（福清）投资公司</span
                          >签署工程互联网+战略合作协议，轰隆隆App开始服务于“福清350
                          | 亿PPP | 项目”
                        </div>
                      </div>
                      <span class="longline"></span>
                    </div>
                    <span class="line1"></span>
                  </div>
                </swiper-slide>
                <swiper-slide class="swiper-slide-defalut2">
                  <div class="center">
                    <span class="line2"></span>
                    <span class="line1"></span>
                    <span class="line2"></span>
                    <span class="line1"></span>
                    <div class="longtext">
                      <span class="longline"></span>
                      <div class="borad">
                        <span class="point"></span>
                      </div>
                      <div class="longcon">
                        <div class="time">2016.05</div>
                        <div class="text">
                          业务合作 |
                          <span class="color"
                            >中天建设、上海建工、上海隧道、中地国际</span
                          >等客户相继与轰隆隆展开合作
                        </div>
                      </div>
                    </div>
                    <span class="line1"></span>
                    <span class="line2"></span>
                    <span class="line1"></span>
                    <span class="line2"></span>
                    <span class="line1"></span>
                    <div class="longtext2">
                      <div class="borad">
                        <span class="point"></span>
                      </div>
                      <div class="longcon">
                        <div class="time">2016.01</div>
                        <div class="text">
                          轰隆隆完成<span class="color">Pre-A | 轮</span>融资
                        </div>
                      </div>
                      <span class="longline"></span>
                    </div>

                    <span class="line1"></span>
                    <span class="line2"></span>
                    <span class="line1"></span>
                    <span class="line2"></span>
                    <span class="line1"></span>
                    <div class="longtext">
                      <span class="longline"></span>
                      <div class="borad">
                        <span class="point"></span>
                      </div>
                      <div class="longcon">
                        <div class="time">2015.11</div>
                        <div class="text">
                          轰隆隆完成
                          <span class="color">天使轮融资</span>
                        </div>
                      </div>
                    </div>
                    <span class="line1"></span>
                    <span class="line2"></span>
                  </div>
                </swiper-slide>
                <swiper-slide class="swiper-slide-defalut2">
                  <div class="center">
                    <span class="line1"></span>
                    <span class="line2"></span>
                    <span class="line1"></span>
                    <span class="line2"></span>
                    <span class="line1"></span>
                    <div class="longtext">
                      <span class="longline"></span>
                      <div class="borad">
                        <span class="point"></span>
                      </div>
                      <div class="longcon">
                        <div class="time">2015.09</div>
                        <div class="text">
                          轰隆隆亮相BICES2015
                          <span class="color">BICES2015</span>，引爆现场
                        </div>
                      </div>
                    </div>
                    <span class="line1"></span>
                    <span class="line2"></span>
                    <span class="line1"></span>
                    <span class="line2"></span>
                    <span class="line1"></span>
                    <div class="longtext">
                      <span class="longline"></span>
                      <div class="borad">
                        <span class="point"></span>
                      </div>
                      <div class="longcon">
                        <div class="time">2015.08</div>
                        <div class="text">
                          产品研发，
                          <span class="color">轰隆隆APP1.0版本</span>
                          上线
                        </div>
                      </div>
                    </div>
                    <span class="line1"></span>
                    <span class="line2"></span>
                    <span class="line1"></span>
                    <span class="line2"></span>
                    <span class="line1"></span>
                    <div class="longtext2">
                      <div class="borad">
                        <span class="point"></span>
                      </div>
                      <div class="longcon">
                        <div class="time">2015.07</div>
                        <div class="text">
                          公司成立 | 北京轰隆隆诞生啦，为用户提供<span
                            class="color"
                            >“工程机械随叫随到的在线预约工程机施服务”</span
                          >
                        </div>
                      </div>
                      <span class="longline"></span>
                    </div>
                  </div>
                </swiper-slide>
                <swiper-slide class="swiper-slide-defalut2">
                  <div class="center"></div>
                </swiper-slide>
              </swiper>
            </div>
          </div>
        </swiper-slide>
      </swiper>

      <FooterBar class="footerBar" v-if="show"></FooterBar>
    </div>
  </div>
</template>

<script>
const animationData = require("@/assets/js/data.json");
import FootBarHeader from "../../../components/FootBarHeader";
import HomeBanner from "../home/Homebanner";
import HomeMechanics from "../home/HomeMechanics";
import FooterBar from "../../../components/FooterBar";
import { Swiper, SwiperSlide } from "vue-awesome-swiper";
import "swiper/css/swiper.css";
export default {
  name: "Home",
  data() {
    return {
      swiperOption: {
        // pagination:'.swiper-pagination',
        notNextTick: true, // notNextTick是一个组件自有属性，如果notNextTick设置为true，组件则不会通过NextTick来实例化swiper，也就意味着你可以在第一时间获取到swiper对象，假如你需要刚加载遍使用获取swiper对象来做什么事，那么这个属性一定要是true
        direction: "vertical", // 水平方向移动
        grabCursor: false, // 鼠标覆盖Swiper时指针会变成手掌形状，拖动时指针会变成抓手形状
        setWrapperSize: true, // Swiper使用flexbox布局(display: flex)，开启这个设定会在Wrapper上添加等于slides相加的宽或高，在对flexbox布局的支持不是很好的浏览器中可能需要用到。
        autoHeight: true, // 自动高度。设置为true时，wrapper和container会随着当前slide的高度而发生变化
        observer: true, // 修改swiper自己或子元素时，自动初始化swiper
        observeParents: true, // 修改swiper的父元素时，自动初始化swiper
        slidesPerView: 1, // 设置slider容器能够同时显示的slides数量(carousel模式)。可以设置为数字（可为小数，小数不可loop），或者 'auto'则自动根据slides的宽度来设定数量。loop模式下如果设置为'auto'还需要设置另外一个参数loopedSlides。
        observer: true,
        initialSlide: 0,
        mousewheel: false, // 开启鼠标滚轮控制Swiper切换。可设置鼠标选项，默认值false
        height: window.innerHeight, // 高度设置，占满设备高度
        // autoHeight: true, // 高度随内容变化
        resistanceRatio: 0, // 抵抗率。边缘抵抗力的大小比例。值越小抵抗越大越难将slide拖离边缘，0时完全无法拖离。本业务需要
        observeParents: true, // 将observe应用于Swiper的父元素。当Swiper的父元素变化时，例如window.resize，Swiper更新
        // autoplayDisableOnInteraction: false, //鼠标划过之后继续轮播
        speed: 1000, // 滚动速度
      },
      swiperOptionus: {
        // pagination:'.swiper-pagination',
        notNextTick: true, // notNextTick是一个组件自有属性，如果notNextTick设置为true，组件则不会通过NextTick来实例化swiper，也就意味着你可以在第一时间获取到swiper对象，假如你需要刚加载遍使用获取swiper对象来做什么事，那么这个属性一定要是true
        direction: "horizontal", // 水平方向移动
        grabCursor: false, // 鼠标覆盖Swiper时指针会变成手掌形状，拖动时指针会变成抓手形状
        setWrapperSize: true, // Swiper使用flexbox布局(display: flex)，开启这个设定会在Wrapper上添加等于slides相加的宽或高，在对flexbox布局的支持不是很好的浏览器中可能需要用到。
        // autoHeight: true, // 自动高度。设置为true时，wrapper和container会随着当前slide的高度而发生变化
        observer: false, // 修改swiper自己或子元素时，自动初始化swiper
        observeParents: true, // 修改swiper的父元素时，自动初始化swiper
        slidesPerView: 2, // 设置slider容器能够同时显示的slides数量(carousel模式)。可以设置为数字（可为小数，小数不可loop），或者 'auto'则自动根据slides的宽度来设定数量。loop模式下如果设置为'auto'还需要设置另外一个参数loopedSlides。
        //  loop: true,
        observer: true,
        autoplay: true,
        initialSlide: 0,
        mousewheel: false, // 开启鼠标滚轮控制Swiper切换。可设置鼠标选项，默认值false
        height: window.innerHeight, // 高度设置，占满设备高度
        // autoHeight: true, // 高度随内容变化
        resistanceRatio: 0, // 抵抗率。边缘抵抗力的大小比例。值越小抵抗越大越难将slide拖离边缘，0时完全无法拖离。本业务需要
        observeParents: true, // 将observe应用于Swiper的父元素。当Swiper的父元素变化时，例如window.resize，Swiper更新
        autoplayDisableOnInteraction: true, //鼠标划过之后继续轮播
        speed: 1000, // 滚动速度
      },
      defaultOptions: { animationData: animationData, loop: true },
      defalut_top: 0,
      show: true,
      isFresh: false,
      showClass: false,
      setbn: 1,
    };
  },
  watch: {},
  components: {
    FootBarHeader,
    HomeBanner,
    HomeMechanics,
    Swiper,
    SwiperSlide,
    FooterBar,
  },
  computed: {
    swiper() {
      return this.$refs.mySwiper.$swiper;
    },
  },

  mounted() {
    this.scrollFunction();
    console.log("Current Swiper instance object", this.swiper);
    window.addEventListener("scroll", this.handleScroll, true);
    this.$refs.mySwiper.$swiper.mousewheel.enable();
  },
  methods: {
    setbtnclas(data) {
      this.setbn = data;
      if (data === 1) {
        this.$refs.mySwiperus.$swiper.slideTo(0, 10, false);
      } else if (data === 2) {
        this.$refs.mySwiperus.$swiper.slideTo(1, 10, false);
      } else if (data === 3) {
        this.$refs.mySwiperus.$swiper.slideTo(3, 10, false);
      } else if (data === 4) {
        this.$refs.mySwiperus.$swiper.slideTo(4, 10, false);
      } else if (data === 5) {
        this.$refs.mySwiperus.$swiper.slideTo(5, 10, false);
      } else if (data === 6) {
        this.$refs.mySwiperus.$swiper.slideTo(7, 10, false);
      } else if (data === 7) {
        this.$refs.mySwiperus.$swiper.slideTo(8, 10, false);
      }
    },
    goNewpage(data) {
      if (data === 1) {
        this.$router.push({ path: "p_cpf" });
      } else if (data === 2) {
        this.$router.go(0)
        // this.$router.push({ path: "p_dph" });
      } else if (data === 3) {
        this.$router.push({ path: "p_ctu" });
      }
    },
    handleAnimation: function (animate) {
      this.animObj = animate;
      console.log(animate); //这里可以看到 lottie 对象的全部属性
    },
    nowNext() {
      this.$refs.mySwiper.$swiper.slideNext();
    },
    getTopClass(data) {
      this.showClass = data;
      console.log(data);
    },
    scrollFunction() {
      this.domObj = document.getElementById("ahome"); // 通过id获取要设置的div
      if (this.domObj.attachEvent) {
        // IE
        this.domObj.attachEvent("onmousewheel", this.mouseScroll);
      } else if (this.domObj.addEventListener) {
        this.domObj.addEventListener("DOMMouseScroll", this.mouseScroll, false);
      }
      this.domObj.onmousewheel = this.domObj.onmousewheel = this.mouseScroll;
    },
    mouseScroll(event) {
      // google 浏览器下
      let detail = event.wheelDelta || event.detail; // 判读滚动方向
      // console.log(detail);
      // console.log( this.i)  // 是否离开底部
      if (detail > 0 && !this.i) {
        this.$router.afterEach((to, from, next) => {
          window.scrollTo(0, 0);
        });
        this.$refs.mySwiper.$swiper.mousewheel.enable();
      }
    },
    slideChange(e) {
      const activeIndex = this.$refs.mySwiper.$swiper.activeIndex;
      if (activeIndex === 1) {
        this.show = true;
        setTimeout(() => {
          this.$refs.mySwiper.$swiper.mousewheel.disable();
        }, 500);
      } else {
        this.show = false;
      }
    },
    slideChangeus(e) {
      const activeIndex = this.$refs.mySwiperus.$swiper.activeIndex;
      console.log(activeIndex);
      if (activeIndex === 0) {
        this.setbn = 1;
      } else if (activeIndex === 1) {
        this.setbn = 2;
      } else if (activeIndex === 3) {
        this.setbn = 3;
      } else if (activeIndex === 4) {
        this.setbn = 4;
      } else if (activeIndex === 5) {
        this.setbn = 5;
      } else if (activeIndex === 7) {
        this.setbn = 6;
      } else if (activeIndex === 8) {
        this.setbn = 7;
      }
      // if (activeIndex === 1) {
      //   this.show = true;
      //   setTimeout(() => {
      //     this.$refs.mySwiper.$swiper.mousewheel.disable();
      //   }, 500);
      // } else {
      //   this.show = false;
      // }
    },
    handleScroll() {
      // 页面滚动距顶部距离
      var scrollTop =
        window.pageYOffset ||
        document.documentElement.scrollTop ||
        document.body.scrollTop;
      var scroll = scrollTop - this.i;
      this.i = scrollTop;
      if (scroll < 0) {
        if (scrollTop < 10) {
          this.$refs.mySwiper.$swiper.mousewheel.enable();
        }
      } else {
        console.log("down");
      }
    },
  },
};
</script>
<style lang="scss" scoped>
@-moz-keyframes bannerBox {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@-webkit-keyframes bannerBox {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@-ms-keyframes bannerBox {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes bannerBox {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}
#bannerBox {
  -moz-animation: bannerBox 3s forwards;
  -webkit-animation: bannerBox 3s forwards;
  -ms-animation: bannerBox 3s forwards;
  animation: bannerBox 3s forwards;
  height: 100%;
  left: 0;
  opacity: 0;
  position: fixed;
  top: 0;
  width: 100%;
  object-fit: cover;
}
#bannerImg {
  // -moz-animation: bannerImg 60s linear infinite;
  // -webkit-animation: bannerImg 60s linear infinite;
  // -ms-animation: bannerImg 60s linear infinite;
  // animation: bannerImg 60s linear infinite;
  // -moz-backface-visibility: hidden;
  // -webkit-backface-visibility: hidden;
  // -ms-backface-visibility: hidden;
  // backface-visibility: hidden;
  // -moz-transform: translate3d(0, 0, 0);
  // -webkit-transform: translate3d(0, 0, 0);
  // -ms-transform: translate3d(0, 0, 0);
  // transform: translate3d(0, 0, 0);
  /* Set your background with this */

  background: url("https://file.honglonglong.com.cn/hll_newPc/aboutUs/contactUs/1400px810.png")
    no-repeat;
  background-size: 100%, 100%;
  background-repeat: repeat-x;
  height: 100%;
  left: 0;
  opacity: 1;
  position: fixed;
  top: 0;
  object-fit: cover;
}
@-moz-keyframes bannerImg {
  0% {
    -moz-transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    -ms-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }

  100% {
    -moz-transform: translate3d(-2250px, 0, 0);
    -webkit-transform: translate3d(-2250px, 0, 0);
    -ms-transform: translate3d(-2250px, 0, 0);
    transform: translate3d(-2250px, 0, 0);
  }
}

@-webkit-keyframes bannerImg {
  0% {
    -moz-transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    -ms-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }

  100% {
    -moz-transform: translate3d(-2250px, 0, 0);
    -webkit-transform: translate3d(-2250px, 0, 0);
    -ms-transform: translate3d(-2250px, 0, 0);
    transform: translate3d(-2250px, 0, 0);
  }
}

@-ms-keyframes bannerImg {
  0% {
    -moz-transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    -ms-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }

  100% {
    -moz-transform: translate3d(-2250px, 0, 0);
    -webkit-transform: translate3d(-2250px, 0, 0);
    -ms-transform: translate3d(-2250px, 0, 0);
    transform: translate3d(-2250px, 0, 0);
  }
}

@keyframes bannerImg {
  0% {
    -moz-transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    -ms-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }

  100% {
    -moz-transform: translate3d(-2250px, 0, 0);
    -webkit-transform: translate3d(-2250px, 0, 0);
    -ms-transform: translate3d(-2250px, 0, 0);
    transform: translate3d(-2250px, 0, 0);
  }
}
#bannerImg {
  background-size: 2250px auto;
  width: 6750px;
}
@-moz-keyframes overlay {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 0.4;
  }
}

@-webkit-keyframes overlay {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 0.4;
  }
}

@-ms-keyframes overlay {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 0.4;
  }
}

@keyframes overlay {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 0.4;
  }
}

#overlay {
  -moz-animation: overlay 1.5s 1.5s forwards;
  -webkit-animation: overlay 1.5s 1.5s forwards;
  -ms-animation: overlay 1.5s 1.5s forwards;
  animation: overlay 1.5s 1.5s forwards;
  background-attachment: fixed, fixed;
  background-image: url("https://hll-prod.oss-cn-beijing.aliyuncs.com/hll_newPc/engineering/download.png"),
    url("https://hll-prod.oss-cn-beijing.aliyuncs.com/hll_newPc/engineering/download.svg");
  background-position: top left, center center;
  background-repeat: repeat, no-repeat;
  background-size: auto, cover;
  height: 100%;
  left: 0;
  opacity: 0;
  position: fixed;
  top: 0;
  width: 100%;
}
.swiper_box {
  position: relative;
}
.swiper-slide-defalut {
  height: 100vh;
  overflow: hidden;
}
.swiper-slide-defalut2 {
  max-width: 1200px !important ;
  // overflow-y: hidden;
}
.home {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  position: relative;
  background: rgba(255, 255, 255, 0.3);
}
.homeBanner {
  width: 100vw;
  height: 100vh;
  .hetitlecc {
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 848px;
    height: 263px;
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: url(https://file.honglonglong.com.cn/hll_newPc/footerBar/banner1border.png)
      no-repeat;
    background-size: 100% 100%;
    color: #ffffff;
    .top {
      font-size: 20px;
      font-weight: 500;
    }
    .big {
      font-size: 50px;
      font-weight: bold;
      margin-top: 20px;
    }
    .line {
      width: 200px;
      height: 1px;
      background: #ffffff;
      margin: 41px 0;
    }
    .text {
      font-size: 20px;
      font-weight: 500;
      .key {
        color: #ff855b;
      }
    }
  }
  .iconImg {
    position: absolute;
    bottom: 1%;
    left: 50%;
    transform: translate(-50%, 0);
    width: 49px;
    height: 49px;
    z-index: 10;
  }
}
.homeBannerDark {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  background: #202734;
  .tabTextcons {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    .tabTextcon {
      cursor: pointer;
      width: 360px;
      font-size: 24px;
      color: #ffffff;
      display: flex;
      align-items: center;
      justify-content: space-between;
      // flex-direction: column;
      margin-top: 70px;
      .tabText {
        display: flex;
        flex-direction: column;
        .tabTexte {
          font-size: 14px;
          color: #909399;
          margin-top: 8px;
        }
      }
      .raLcon {
        width: 37px;
        height: 11px;
        // margin-left: 144px ;
      }
    }
    .tabTextcon:hover {
      cursor: pointer;
    }
  }
}
.timebanner2 {
  width: 99vw;
  background: #fbfbfb;
  .timeline {
    display: flex;
    justify-content: space-between;
    height: 170px;
    margin: 0 129px 0 223px;
    .lft {
      position: relative;
      font-size: 26px;
      font-weight: 400;
      color: #000000;
      margin-top: 64px;
      .shadow {
        position: absolute;
        top: -20px;
        font-size: 40px;
        font-weight: normal;
        // color: #f5f5f5;
        opacity: 0.05;
      }
      .line {
        width: 28px;
        height: 3px;
        background: #ff855b;
        margin-top: 11px;
      }
    }
    .rht {
      display: flex;
      margin-top: 64px;
      font-size: 26px;
      font-weight: 600;
      color: #c0c4cc;
      .now {
        cursor: pointer;
        margin-left: 38px;
      }
      .set {
        color: #303133;
      }
    }
  }
  .paintline {
    width: 100%;
    height: 620px;
    background: #f0f2f5;

    // display: flex;
    // justify-content: right;
    // align-items: center;
    .center {
      width: 100%;
      height: 620px;
      display: flex;
      align-items: center;
      margin-left: 700px;
      .longtext {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-right: 44px;
        margin-top: 40px;
        .longline {
          width: 2px;
          height: 121px;
          background: #979797;
        }
        .borad {
          width: 26px;
          height: 26px;
          border: 1px solid #999999;
          border-radius: 50%;
          display: flex;
          align-items: center;
          justify-content: center;
          margin-top: 10px;
          .point {
            width: 7px;
            height: 7px;
            background: #ff855b;
            border-radius: 50%;
          }
        }
        .longcon {
          width: 154px;
          height: 88px;
          position: absolute;
          bottom: -60px;
          right: -160px;
          font-size: 16px;
          font-weight: 600;
          color: #000000;
          .time {
            color: #999999;
            margin-bottom: 9px;
          }
          .text {
            width: 200px;
            .color {
              color: #ff855b;
            }
          }
        }
      }
      .longtext2 {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-right: 44px;
        margin-bottom: 140px;
        .longline {
          width: 2px;
          height: 121px;
          background: #979797;
        }
        .borad {
          width: 26px;
          height: 26px;
          border: 1px solid #999999;
          border-radius: 50%;
          display: flex;
          align-items: center;
          justify-content: center;
          margin-top: 10px;
          .point {
            width: 7px;
            height: 7px;
            background: #ff855b;
            border-radius: 50%;
          }
        }
        .longcon {
          width: 154px;
          height: 88px;
          position: absolute;
          top: 6px;
          right: -160px;
          font-size: 16px;
          font-weight: 600;
          color: #000000;
          .time {
            color: #999999;
            margin-bottom: 9px;
          }
          .text {
            .color {
              color: #ff855b;
            }
          }
        }
        .longcon2 {
          width: 154px;
          height: 88px;
          position: absolute;
          top: -66px;
          right: -160px;
          font-size: 16px;
          font-weight: 600;
          color: #000000;
          .time {
            color: #999999;
            margin-bottom: 9px;
          }
          .text {
            .color {
              color: #ff855b;
            }
          }
        }
      }
      .line1 {
        width: 2px;
        height: 18px;
        background: #979797;
        margin-right: 44px;
      }
      .line2 {
        width: 2px;
        height: 32px;
        background: #979797;
        margin-right: 44px;
      }
    }
    .center2 {
      width: 100%;
      height: 620px;
      margin-left: 1000px;
      display: flex;
      align-items: center;
      .longtext {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-right: 44px;
        margin-top: 40px;
        .longline {
          width: 2px;
          height: 121px;
          background: #979797;
        }
        .borad {
          width: 26px;
          height: 26px;
          border: 1px solid #999999;
          border-radius: 50%;
          display: flex;
          align-items: center;
          justify-content: center;
          margin-top: 10px;
          .point {
            width: 7px;
            height: 7px;
            background: #ff855b;
            border-radius: 50%;
          }
        }
        .longcon {
          width: 154px;
          height: 88px;
          position: absolute;
          bottom: -60px;
          right: -160px;
          font-size: 16px;
          font-weight: 600;
          color: #000000;
          .time {
            color: #999999;
            margin-bottom: 9px;
          }
          .text {
            .color {
              color: #ff855b;
            }
          }
          .text2 {
            width: 300px;
            .color {
              color: #ff855b;
            }
          }
        }
      }
      .longtext2 {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-right: 44px;
        margin-bottom: 140px;
        .longline {
          width: 2px;
          height: 121px;
          background: #979797;
        }
        .borad {
          width: 26px;
          height: 26px;
          border: 1px solid #999999;
          border-radius: 50%;
          display: flex;
          align-items: center;
          justify-content: center;
          margin-top: 10px;
          .point {
            width: 7px;
            height: 7px;
            background: #ff855b;
            border-radius: 50%;
          }
        }
        .longcon {
          width: 154px;
          height: 88px;
          position: absolute;
          top: 6px;
          right: -160px;
          font-size: 16px;
          font-weight: 600;
          color: #000000;
          .time {
            color: #999999;
            margin-bottom: 9px;
          }
          .text {
            .color {
              color: #ff855b;
            }
          }
        }
      }
      .line1 {
        width: 2px;
        height: 18px;
        background: #979797;
        margin-right: 44px;
      }
      .line2 {
        width: 2px;
        height: 32px;
        background: #979797;
        margin-right: 44px;
      }
    }
  }
}

.HomeContent {
  object-fit: cover;
  width: 100%;
  height: 100vh;
}
.footBarHeader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}
.footer-swiper {
  height: 336px !important;
}
</style>
